package Java.j2;

import java.util.Scanner;

public class AcWing_666 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double A = sc.nextDouble();
        double B = sc.nextDouble();
        double C = sc.nextDouble();

        if(A < B){
            double temp = A;
            A = B;
            B = temp;
        }
        if(B < C){
            double temp = B;
            B = C;
            C = temp;
        }
        if(A < B){
            double temp = A;
            A = B;
            B = temp;
        }

        if(A >= B + C){
            System.out.println("NAO FORMA TRIANGULO");
        }else if(A*A == B*B + C*C){
            System.out.println("TRIANGULO RETANGULO");
        }else if(A*A > B*B + C*C){
            System.out.println("TRIANGULO OBTUSANGULO");
        }else if(A*A < B*B + C*C){
            System.out.println("TRIANGULO ACUTANGULO");
        }
        if(A == B && B == C){
            System.out.println("TRIANGULO EQUILATERO");
        }
        if((A == B && B != C) || (A == C && C != B) || (B == C && C != A)){
            System.out.println("TRIANGULO ISOSCELES");
        }
    }
}
